package com.entity;

public class Report extends BaseEntity {

//    private static final long serialVersionUID = 1L;

    private Student student; // 举报人
    private Goods goods;     // 被举报的物品
    private String reason;   // 举报理由
    private String status;   // 举报状态
    private String adminNotes; // 管理员备注

    // Getters and Setters
    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    // getContent 和 setContent 保持，但它们现在对应数据库的 reason 列
    public String getContent() {
        return reason;
    }

    public void setContent(String content) {
        this.reason = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return "{" +
                "id=" + getId() +
                ", 用户：" + (student != null ? student.getUsername() : "null") +
                ", 商品：" + (goods != null ? goods.getName() : "null") +
                ", 举报：" + reason + "'" +
                '}';
    }
}
